<template>
    <input-control title="修改单价" @pwdDone="pwdDone" :isShow.sync="isShow"></input-control>
    <confirm v-model="showForgetPwd" class="confirm-box" cancelText="忘记密码" confirmText="重试"
             @on-cancel="$router.push('/passForget')" @on-confirm="onSave">
        <h4 class="confirm-title">输入密码错误</h4>
    </confirm>
</template>

<script>
    import {
        Confirm
    } from 'vux'
    import {
        InputControl
    } from 'muka-ui'
    export default {
        name: 'z-search',
        components: {
            Group,
            Cell,
            CellBox,
            Search,
            Tab,
            TabItem,
            InputControl
        },
        props: {
            show: {
                type: Boolean,
                default: false
            },
            placeholder: String
        },

        data: function () {
            return {
                cardId: '',
                tankerId: '',
                icDetail: [],
                showSearch: true,
                select: 1,
                searchText: '',
                tankerDetail: []
            }
        },
        created: function () {
            this.showSearch = this.show
        },
        methods: {
            doFail: function () {
                this.showForgetPwd = true
            },
            pwdDone: function (password) {
                this.$emit('pwdDone', password, this.doFail)
            },
        }
    }

</script>
<style>

</style>
